<?php

final class SQLDelete extends SQLInstruction {

    public function getInstruction() {
        $sql = "DELETE FROM {$this->entity}";
        if (isset($this->criteria)) {
            $expression = $this->criteria->dump();
            if (isset($expression[0])) {
                $sql .= ' WHERE ' . $expression;
            }
        }
    }

}

?>
